<?php
/**
 * Created by PhpStorm.
 * User: YC
 * Date: 2017/4/30
 * Time: 13:51
 */

namespace app\admin\validate;

use think\Validate;

class User extends Validate
{
    protected $rule = [
        'company|公司名称' => 'require|max:40',
        'username|姓名'   =>  'require|max:10',
        'mobile|手机号码'   =>  'require|mobile|unique:user',
        'inmobile|收件人手机号码'   =>  'require|mobile',
    ];

}